package com.alphasta.project.ucp.usermapping.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alphasta.project.ucp.usermapping.mapper.UsermappingMapper;
import com.alphasta.project.ucp.usermapping.domain.Usermapping;
import com.alphasta.project.ucp.usermapping.service.IUsermappingService;
import com.alphasta.common.support.Convert;

/**
 * InnoDB free: 173056 kB 服务层实现
 *
 * @author 张炳威
 * @date 2019-08-08
 */
@Service
public class UsermappingServiceImpl implements IUsermappingService
{
	@Autowired
	private UsermappingMapper usermappingMapper;

	/**
     * 查询InnoDB free: 173056 kB信息
     *
     * @param usermpid InnoDB free: 173056 kBID
     * @return InnoDB free: 173056 kB信息
     */
    @Override
	public Usermapping selectUsermappingById(String usermpid)
	{
	    return usermappingMapper.selectUsermappingById(usermpid);
	}

	/**
     * 查询InnoDB free: 173056 kB列表
     *
     * @param usermapping InnoDB free: 173056 kB信息
     * @return InnoDB free: 173056 kB集合
     */
	@Override
	public List<Usermapping> selectUsermappingList(Usermapping usermapping)
	{
	    return usermappingMapper.selectUsermappingList(usermapping);
	}

    /**
     * 新增InnoDB free: 173056 kB
     *
     * @param usermapping InnoDB free: 173056 kB信息
     * @return 结果
     */
	@Override
	public int insertUsermapping(Usermapping usermapping)
	{
	    return usermappingMapper.insertUsermapping(usermapping);
	}

	/**
     * 修改InnoDB free: 173056 kB
     *
     * @param usermapping InnoDB free: 173056 kB信息
     * @return 结果
     */
	@Override
	public int updateUsermapping(Usermapping usermapping)
	{
	    return usermappingMapper.updateUsermapping(usermapping);
	}

	/**
     * 删除InnoDB free: 173056 kB对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteUsermappingByIds(String ids)
	{
		return usermappingMapper.deleteUsermappingByIds(Convert.toStrArray(ids));
	}

}
